org.eclipse.vtp.framework.interactions.core.commands
Class FinalCommand

java.lang.Object
  extended by org.eclipse.vtp.framework.interactions.core.commands.ConversationCommand
      extended by org.eclipse.vtp.framework.interactions.core.commands.FinalCommand
All Implemented Interfaces:
ICommand

public class FinalCommand
extends ConversationCommand

FinalCommand.

Author:
Lonnie Pryor

Field Summary
 
Fields inherited from class org.eclipse.vtp.framework.interactions.core.commands.ConversationCommand
INPUT_TYPE_CUSTOM, INPUT_TYPE_FILE, OUTPUT_TYPE_FILE, OUTPUT_TYPE_TEXT
 
Constructor Summary
FinalCommand()
          Creates a new InitialCommand.
 
Method Summary
 boolean addVariable(java.lang.String name, java.lang.String value)
          addVariable.
 java.lang.Object exportContents()
          Exports the contents of this command to a simple structure of arrays and serializable values from java.lang.
 java.lang.String getVariable(java.lang.String name)
          getVariable.
 java.lang.String[] getVariableNames()
          getVariables.
 void importContents(java.lang.Object contents)
          Configures the contents of this command with a structure previously returned from ICommand.exportContents().
 boolean removeVariable(java.lang.String name)
          removeVariable.
 
Methods inherited from class org.eclipse.vtp.framework.interactions.core.commands.ConversationCommand
accept
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FinalCommand

public FinalCommand()
Creates a new InitialCommand.

Method Detail

getVariableNames

public java.lang.String[] getVariableNames()
getVariables.

Returns:

getVariable

public java.lang.String getVariable(java.lang.String name)
getVariable.

Parameters:
name -
Returns:

addVariable

public boolean addVariable(java.lang.String name,
                           java.lang.String value)
addVariable.

Parameters:
name -
Returns:

removeVariable

public boolean removeVariable(java.lang.String name)
removeVariable.

Parameters:
name -
Returns:

exportContents

public java.lang.Object exportContents()
Description copied from interface: ICommand
Exports the contents of this command to a simple structure of arrays and serializable values from java.lang.

Returns:
A serializable structure this command can be re-constituted from.

importContents

public void importContents(java.lang.Object contents)
Description copied from interface: ICommand
Configures the contents of this command with a structure previously returned from ICommand.exportContents().

Parameters:
contents - The exported contents structure to load from.